﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace LiJu
{
    static class Program
    {
        private static Mutex mutex = null;

        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            bool createdNew;
            mutex = new Mutex(true, "LiJu", out createdNew);

            if (createdNew)
            {
                // 当前没有实例在运行，可以启动应用程序
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                Application.Run(new SignIn());
                //Application.Run(new Work());
                //Application.Run(new ComSet());
            }
            else
            {
                // 程序已运行，不再启动
                MessageBox.Show("程序已运行！", "信息", MessageBoxButtons.OK, MessageBoxIcon.Information);
                Environment.Exit(1);
            }

        }
    }
}
